package io.gitee.sfch.chunmi.service.system.converter;

import io.gitee.sfch.chunmi.controller.system.form.SystemProductAddForm;
import io.gitee.sfch.chunmi.dao.system.entity.SystemProduct;
import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;

/**
 * {@link SystemProduct} 转换器
 */
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
public interface SystemProductConverter {

    /**
     * {@link SystemProductAddForm} 转 {@link SystemProduct}
     *
     * @param command 新增系统产品
     */
    SystemProduct of(SystemProductAddForm command);
}
